<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title><fmt:message key="label.bookingdetails"/></title>
</head>
<form action="ApproveBooking" method=post>
<body>
<center>
<h1>
Booking Detail
</h1>
<table>
<tr>
<td width="170">BookingID:</td>
<td>${param['id']}</td>
<td>FacilityName: </td>
<td>${param['facilityName']}</td>
</tr>
<tr>
<td>UserId:</td>
<td>${param['userId']}</td>
<td>Priority: </td>
<td>${param['priority']}</td>
</tr>
<tr>
<td>Priority:</td>
<td>${param['startDate']}</td>
<td>To </td>
<td>${param['endDate']}</td>
</tr>
<tr>
<td>ContactDetail:</td>
<td>${param['contactDetail']}</td>
<td>Reason: </td>
<td>${param['reason']}</td>
</tr>
<tr>
<td>ValidateBy:</td>
<td>${param['validateBy']}</td>
<td>ValidateOn: </td>
<td>${param['validateOn']}</td>
</tr>
<tr>
<td>Status: </td>
<td>${param['status']}</td>
<td>BookOn: </td>
<td>${param['bookOn']}</td>
</tr>
</center>
</table>

<c:set var = "mgrtype" value="Manager"/>
<c:set var ="previouspage" value="/ViewPendingBooking.jsp"/>
<c:if test="${sessionScope.user.type==mgrtype && previouspage==pageContext.request.servletPath}">
<input type="submit" name="Approve" value="Approve"><input type="submit" name="Rejcet" value="Reject">
</c:if>
</body>
</form>
</html>